<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no" />
    <meta name="keywords" content="<?php echo $SEO['keyword'];?>" />
    <meta name="description" content="<?php echo $SEO['description'];?>"/>
    <title><?php if(isset($SEO['title']) && !empty($SEO['title'])) { ?><?php echo $SEO['title'];?><?php } ?><?php echo $SEO['site_title'];?></title>

    <link type="text/css" rel="stylesheet" href="<?php echo SKIN_PATH;?>css/pc_style.css" />
    <script type="text/javascript" src="<?php echo SKIN_PATH;?>js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="<?php echo SKIN_PATH;?>js/common.js"></script>
</head>

<body>

<div id="header" class="header_mini">
    <div class="header-c wrap">
    	<div class="logo f_l">
            <!--logo-->
            <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=7b25eecd5f852014b66656ce31ae870f&action=getRecord&fields=thumb&where=id+eq+40&name=news&limit=1&return=r_logo\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'getRecord')) {$r_logo = $content_tag->getRecord(array('fields'=>'thumb','where'=>'id eq 40','name'=>'news','limit'=>'20',));}?>
            <?php $n=1;if(is_array($r_logo)) foreach($r_logo AS $r) { ?>
            <div class="logo"><a href="<?php echo WEB_PATH;?>" data-ajax="false"><img src="<?php echo $r['thumb'];?>"></a></div>
            <?php $n++;}unset($n); ?>
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </div>
        <div class="mnav f_r">
        
            <div id="top-r-link" align="right">
            	【 <a href="javascript:;" onclick="SetHome(window.location);return false">设为首页</a> | 
                <a href="javascript:;" onclick="AddFavorite();return false;">添加收藏</a> 】
            </div>
            
            <div id="search-form" align="right">
                <form name="form1" id="form1" action="index.php">
                    <input type="hidden" name="m" value="search"/>
                    <input type="hidden" name="c" value="index"/>
                    <input type="hidden" name="a" value="init"/>
                    <input type="hidden" name="typeid" value="<?php echo $typeid;?>" id="typeid"/>
                    <input type="hidden" name="siteid" value="<?php echo $siteid;?>" id="siteid"/>
                    <input type="text" name="q" id="keywords" size="30"> <input type="submit" id="post-search" value="搜索">
                    <label for="keywords" class="keywords_label" id="keywords_prompt" style="display: block;">请输入搜索关键词</label>
                </form>
            </div>
        
        </div>
        <div class="clear"></div>
        <div id="main-nav">
            <?php $category_arr = getcache('category_content_'.($siteid?$siteid:'1'),'commons');$mnav_total=10;$cur_count=1?>
            <div class="nav-item"><a href="<?php echo siteurl($siteid);?>" rel="external" class="m1">网站首页</a></div>
            <?php $n=1;if(is_array($category_arr)) foreach($category_arr AS $mitem) { ?>
                <?php if($mitem[ismenu] && !$mitem[parentid] && ++$cur_count<$mnav_total) { ?>
                <div class="nav-item">
                    <a href="<?php echo $mitem['url'];?>" title="<?php echo $mitem['catname'];?>" class="m1"><?php echo $mitem['catname'];?></a>
                      <?php if($mitem['child']) { ?>
                      <?php $childarr=explode(',',$mitem['arrchildid']);array_shift($childarr);?>
                      <div class="sub-menu">
                      <?php $n=1;if(is_array($childarr)) foreach($childarr AS $child) { ?>
                          <!--level-one only-->
                          <?php if($category_arr[$child][parentid]==$mitem[catid]) { ?>
                          <a href="<?php echo $category_arr[$child]['url'];?>" title="<?php echo $category_arr[$child]['catname'];?>"><?php echo str_cut($category_arr[$child]['catname'],12,'');?></a>
                          <?php } ?>
                      <?php $n++;}unset($n); ?>	
                      </div>
                      <?php } ?>
                </div>
                <?php } ?>
            <?php $n++;}unset($n); ?>
			<div class="nav-item"><a href="index.php?m=formguide&c=index&a=show&formid=13&siteid=1" class="m1">在线留言</a></div>
        </div>
        
        <div class="clear"></div>
    </div>
</div>
<!--<div class="wrap ptop">
    <div id="top-social-bar" class="wrap"></div>
</div>-->

<div id="main-body" class="wrap innerp">
	<div id="top-social-bar" class="wrap">
        <div class="visit_path">
            <a href="<?php echo siteurl($siteid);?>">网站首页</a><span> » </span><?php echo catpos($catid,'»');?> <?php if($id) { ?>详情<?php } ?><?php if($q) { ?>关键字“<?php echo $q;?>”搜索结果<?php } ?>
        </div>
    </div>
	<div id="main-content" class="wrap2">